package com.pms.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pms.common.annotation.Excel;
import com.pms.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 入住信息对象 pms_checkin_info
 * 
 * @author 达瓦里氏
 * @date 2023-03-04
 */
@Data
public class PmsCheckinInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 入住信息编码 */
    @Excel(name = "入住信息编码")
    private String code;

    /*支付内容*/
    private String name;

    /** 支付宝订单号 */
    private String aliNo;

    /** 房间id */
    @Excel(name = "房间id")
    private Long roomId;

    /** 客户id */
    @Excel(name = "客户id")
    private Long clientId;

    /** 联系方式 */
    private String phone;

    /** 价格 */
    private BigDecimal price;

    /* 支付状态 */
    private String state;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkinTime;

    /** 退房时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退房时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAliNo(){
        return aliNo;
    }
    public void setAliNo(String alipayTradeNo){
        this.aliNo = aliNo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Long getClientId() {
        return clientId;
    }

    public void setClientId(Long clientId) {
        this.clientId = clientId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCheckinTime() {
        return checkinTime;
    }

    public void setCheckinTime(Date checkinTime) {
        this.checkinTime = checkinTime;
    }

    public Date getCheckoutTime() {
        return checkoutTime;
    }

    public void setCheckoutTime(Date checkoutTime) {
        this.checkoutTime = checkoutTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "PmsCheckinInfo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", aliNo='" + aliNo + '\'' +
                ", roomId=" + roomId +
                ", clientId=" + clientId +
                ", phone='" + phone + '\'' +
                ", price=" + price +
                ", state='" + state + '\'' +
                ", payTime=" + payTime +
                ", checkinTime=" + checkinTime +
                ", checkoutTime=" + checkoutTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
